package com.unlcn.ils.kas.dao.infrastructure.Repository;

import java.util.Date;
import java.util.List;

import com.unlcn.ils.kas.dao.mapper.onway.GeelyOnWayMapper;
import com.unlcn.ils.kas.dao.model.onway.GeelyOnWay;
import com.unlcn.ils.kas.dao.model.onway.GeelyOnWayRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class MabatisGeelyOnWayRepository implements GeelyOnWayRepository {

  @Autowired
  private GeelyOnWayMapper mapper;

  @Override
  public List<GeelyOnWay> selectByLocationZone(Date timeBegin, Date timeEnd) {
    return mapper.selectByLocationZone(timeBegin, timeEnd);
  }

  @Override
  public List<GeelyOnWay> selectUnpushed(Date timeBegin) {
    return mapper.selectUnpushed(timeBegin);
  }

  @Override
  public void confirmPushedBatch(List<String> vinList, Date pushTime) {
    mapper.confirmPushedBatch(vinList, pushTime);
  }

  @Override
  public long selectUnpushedCtByVINList(List<String> vinList) {
    return mapper.selectUnpushedCtByVINList(vinList);
  }

}
